{% load staticfiles %}
{% csrf_token %}
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/html">
    <head>
        <meta charset="utf-8">
        <meta name="renderer" content="webkit">
        <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
        <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
        <link rel="stylesheet" href="{% static 'css/layui.css' %}">
        <link rel="stylesheet" href="{% static 'css/index.css' %}">
        <title>配置添加</title>
    </head>
    <body>
        <form id="formall" name="formall" class="layui-form">
            <div class="layui-tab">
                <ul class="layui-tab-title">
                      <li class="layui-this">基础配置</li>
                      <li>配置项修改</li>
                </ul>
                <div class="layui-tab-content">
                    <div class="layui-tab-item layui-show">
                        <div class="layui-form-item">
                            <label class="layui-form-label">node名称</label>
                            <div class="layui-input-block">
                                <input type="text" name="nodename" lay-verify="textbox" placeholder="请输入" autocomplete="off" class="layui-input">
                            </div>
                        </div>
                        <div class="layui-form-item">
                            <label class="layui-form-label">模块选择</label>
                            <div class="layui-input-block">
                                <select name="module" id="module" lay-filter="module">

                                </select>
                            </div>
                        </div>
                        <div class="layui-form-item">
                            <label class="layui-form-label">版本选择</label>
                            <div class="layui-input-block">
                                <select name="gitversion" id="gitversion" lay-filter="gitversion">
                                </select>
                            </div>
                        </div>
                        <div class="layui-form-item">
                            <label class="layui-form-label">常规配置</label>
                            <div class="layui-input-block">
{#                              <input type="checkbox" name="like[write]" title="最新版本">#}
                              <input type="checkbox" name="config" title="默认配置"></div>
                        </div>
                        <div class="layui-form-item">
                            <div class="layui-input-block">
                              <button id="submitde" class="layui-btn" lay-submit lay-filter="submitde">立即提交</button>
                              <button type="reset" class="layui-btn layui-btn-primary">重置</button></div>
                        </div>
                    </div>
                    <div class="layui-tab-item">
                        <div class="layui-form-item">
                            <label class="layui-form-label">文件描述</label>
                            <div class="layui-input-block">
                                <input type="text" id='filename' name="" placeholder="文件名称" autocomplete="off" class="layui-input layui-input-new">
                                <input type="text" id='optionname' name="" placeholder="节名称" autocomplete="off" class="layui-input layui-input-new">
{#                                <div class="layui-btn-group demoTable" id="layerDemo" style="margin-bottom: 0;margin-left: 30px; ">#}
                                <button type="button" id="addtable" class="layui-btn layui-btn-normal">添加</button>
{#                                </div>#}
                            </div>
                        </div>

                        <div class="layui-form-item">
                            <label class="layui-form-label">参数详情</label>
                            <div class="layui-input-block">
                                <input type="text" id='parameter' name="" placeholder="请输入" autocomplete="off" class="layui-input">
                            </div>
                        </div>
                        <div class="layui-form-item">
                            <table class="layui-table" id="deploymentform" lay-filter="deploymentform"></table>
                        </div>

                    </div>
                </div>
            </div>
        </form>

        <script src="{% static 'layui.all.js' %}"></script>
        <script type="text/html" id="debarDemo">
    {#            <a class="layui-btn layui-btn-mini" lay-event="module_detailsnu">模块详情</a>#}
            <a class="layui-btn layui-btn-xs" lay-event="del">删除</a>

        </script>
        <script type="text/javascript">
            var zcellname = {{ zcellname| safe }};
            var zcellip = {{ zcellip|safe }};
            var gitmodule = {{ gitmodule|safe }};
        </script>
        <script src="{% static 'js/update/deploymentadd.js' %}"></script>
        <script src="{% static 'js/command.js' %}"></script>
    </body>
</html>